{template 'public/header'}
{template 'public/comhead'}
<input type="hidden" name="schoolid" value="{$schoolid}" />
<ul class="nav nav-tabs">
    <li {if $operation == 'display'}class="active"{/if}><a href="{php echo $this->createWebUrl('shoucelist', array('op' => 'display', 'schoolid' => $schoolid))}">{$logo['shoucename']}</a></li>
	<li {if $_GPC['do'] == 'shouceset'}class="active"{/if}><a href="{php echo $this->createWebUrl('shouceset', array('op' => 'display', 'schoolid' => $schoolid))}">评价分类</a></li>
	<li {if $_GPC['do'] == 'shouceset' && $operation =='pylist'}class="active"{/if}><a href="{php echo $this->createWebUrl('shouceset', array('op' => 'display', 'schoolid' => $schoolid))}">评语库</a></li>
</ul>
 <style>
.cLine {
    overflow: hidden;
    padding: 5px 0;
  color:#000000;
}
.alert {
padding: 8px 35px 0 10px;
text-shadow: none;
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
background-color: #f9edbe;
border: 1px solid #f0c36d;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
color: #333333;
margin-top: 5px;
}
.alert p {
margin: 0 0 10px;
display: block;
}
.alert .bold{
font-weight:bold;
}
 </style>
<div class="cLine">
    <div class="alert">
    <p><span class="bold">使用方法：</span>请先设置评价分类和评语库</br>   
   <strong><font color='red'>特别提醒: 当你删除该项的时候,该项下相关的所有数据都会被删除,请谨慎操作!以免丢失数据!</font></strong></br>
   <strong><font style="color:#641DBF;">素材请查看群文件，（评语系统素材）!</font></strong>
    </p>
    </div>
</div>
{if $operation == 'display'}
<div class="main">
    <div class="panel panel-default">
        <div class="panel-body">
            <form action="./index.php" method="get" class="form-horizontal" role="form">
                <input type="hidden" name="c" value="site" />
                <input type="hidden" name="a" value="entry" />
                <input type="hidden" name="m" value="fm_jiaoyu" />
                <input type="hidden" name="do" value="shoucelist" />
                <input type="hidden" name="schoolid" value="{$schoolid}" />
                <div class="form-group">
                    <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label" style="width: 100px;">关键字</label>
                    <div class="col-sm-2 col-lg-2">
                        <input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}">
                    </div>
               <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label" style="width: 100px;">按班级</label>
                    <div class="col-sm-2 col-lg-2">
                        <select style="margin-right:15px;" name="bj_id" class="form-control">
                            <option value="0">请选择班级搜索</option>
                            {loop $allbj $row}
                            <option value="{$row['sid']}" {if $row['sid'] == $_GPC['bj_id']} selected="selected"{/if}>{$row['sname']}</option>
                            {/loop}
                        </select>
                    </div>
               <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label" style="width: 100px;">按期号</label>   
                    <div class="col-sm-2 col-lg-2">
                        <select style="margin-right:15px;" name="km_id" class="form-control">
                            <option value="0">请选择期号搜索</option>
                            {loop $allxq $row}
                            <option value="{$row['sid']}" {if $row['sid'] == $_GPC['km_id']} selected="selected"{/if}>{$row['sname']}</option>
                            {/loop}
                        </select>
                    </div>
					<div class="col-sm-2 col-lg-2">
						<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
					</div>	            
                </div>   
            </form>
        </div>
    </div>
    <div class="panel panel-default">
        <form action="" method="post" class="form-horizontal form" >
            <input type="hidden" name="schoolid" value="{$schoolid}" />
            <div class="table-responsive panel-body">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
					    <th style="width:100px;">序号</th>
						<th>所属学期</th>
						<th>所属班级</th>
                        <th>名称</th>
						<th>评价规则</th>
						<th>代表时间</th>
						<th>创建老师</th>
						<th>发送状况</th>
                        <th style="text-align:right;">删除</th>
                    </tr>
                    </thead>
                    <tbody id="level-list">
                    {loop $list $row}
                    <tr>
					    <td><div class="type-parent">{$row['id']}</div></td>
						<td><div class="type-parent">{$row['xueqi']}</div></td>
                        <td><div class="type-parent">{$row['banji']}&nbsp;&nbsp;</div></td>
						<td><div class="type-parent">{$row['title']}</div></td>
					    <td>
							<img style="width:50px;height:50px;border-radius:50%;" src="{if !empty($row['gzicon'])}{php echo tomedia($row['gzicon'])}{/if}" width="50"  style="border-radius: 3px;" /></br></br>{$row['gzname']}
					    </td>
						<td><span class="label label-success">{php echo date('Y年m月d日',$row['starttime'])}&nbsp;至&nbsp;{php echo date('Y年m月d日',$row['endtime'])}</span></td>
						<td><div class="type-parent">{$row['tname']}</div></td>
						<td><div class="type-parent">{if $row['sendtype'] ==1}未发送{/if}{if $row['sendtype'] ==2}部分发送{/if}{if $row['sendtype'] ==3}全部发送{/if}</div></td>
                        <td style="text-align:right;"><a class="btn btn-default btn-sm" href="{php echo $this->createWebUrl('shoucelist', array('op' => 'delete', 'id' => $row['id'], 'schoolid' => $schoolid))}" onclick="return confirm('确认删除吗？');return false;" title="删除"><i class="fa fa-times"></i></a></td>
                    </tr>
                    {/loop}
                    <!--tr>
                        <td colspan="3">
                            <input name="submit" type="submit" class="btn btn-primary" value="批量更新排序">
                            <input type="hidden" name="token" value="{$_W['token']}" />
                        </td>
                    </tr-->
                    </tbody>
                </table>
            </div>
        </form>
    </div>
    {$pager}
</div>
{/if}
{template 'public/footer'}